package com.hgs.iias.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.hgs.iias.domain.User;
import com.hgs.iias.service.exception.ObjectExistsException;

public interface UserService {
	@Transactional(readOnly = true)
	List<User> list();
	
	@Transactional(readOnly = true)
	User load(String username);
	
	@Transactional
	void modify(User user);
	
	@Transactional
	void register(User user) throws ObjectExistsException;
}
